package com.silverbox.shopper.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.ShopperNotice;

public interface ShopperNoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopperNotice record);

    int insertSelective(ShopperNotice record);

    ShopperNotice selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopperNotice record);

    int updateByPrimaryKeyWithBLOBs(ShopperNotice record);

    int updateByPrimaryKey(ShopperNotice record);
    
    /**
     * 获取店铺最新的一条公告
     */
    ShopperNotice getShopperNewestNotice(@Param("storeId")Integer storeId, @Param("nowDate")String nowDate);
    
    /**
     * 获取店铺公告集合
     * @param storeId
     * @param date
     * @return
     */
	List<ShopperNotice> getNoticeDetail(@Param("storeId")Integer storeId, @Param("nowDate")String nowDate);
}